<?php

//require_once 'PDO.php';

class mp3_PDO extends PDO
{
	
	protected static $instance = NULL;
	
	protected static $_dsn = 'mysql:dbname=mp3;host=localhost';
	protected static $_user = 'root';
	
	
	public function __construct()
	{
		parent::__construct(mp3_PDO::$_dsn, mp3_PDO::$_user);
	}
	
	public static function getInstance()
	{
		if (is_null( self::$instance ) )
		{
			self::$instance = new mp3_PDO();
		}
		return self::$instance;
	}
}